<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <link href="/zsbweb/img/index.css" rel="stylesheet"/>
</head>
<body>
<div>
    <a href="toAdd">新增广告</a>
    <img src="/zsbweb/img/fink.png"/>
</div>
   <table border="1">
       <tr>
           <th>编号</th>
           <th>标题</th>
           <th>网址</th>
           <th>操作</th>
       </tr>
       <c:forEach items="${p.data}" var="a">
           <tr>
               <td>${a.id}</td>
               <td>${a.title}</td>
               <td>${a.url}</td>
               <td><a href="del-${a.id}">删除</a> </td>
           </tr>
       </c:forEach>
   </table>
<p>
    <a href="search?page=${p.page-1}">上一页</a>
    <a href="search?page=${p.page+1}">下一页</a>
</p>
</body>
</html>
